﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WaveringLand_Launcher.Helper.Net;

namespace WaveringLand_Launcher.Helper
{
    public class VersionHelper
    {
        public static bool CheckNeedUpdate()
        {
            var latest = WlApiHelper.GetLauncherVersion();
            if (latest != App.Version)
            {
                return true;
            }
            return false;
        }

        public static void OpenLauncherDownPage()
        {
            var psi = new ProcessStartInfo
            {
                FileName = "http://downloads.heerdev.top/Launcher.exe",
                UseShellExecute = true
            };
            Process.Start(psi);
        }
    }
}
